package 装饰者模式.人穿衣服;

/**
 *
 */
public class DtxDecorator extends Decorator {

    public DtxDecorator(People component) {
        super(component);
    }

    @Override
    public void operator() {
        component.operator();
        wear();
    }

    //私有方法
    private void wear() {
        System.out.println("正在穿大T恤");
    }


}
